ARM: HYP/non-sec: move switch to non-sec to the last boot phase
authorMarc Zyngier <[email protected]>
Sat, 12 Jul 2014 13:23:58 +0000 (14:23 +0100)
committerAlbert ARIBAUD <[email protected]>
Mon, 28 Jul 2014 15:05:59 +0000 (17:05 +0200)
commitc19e0dd7412f5c4bce8c5057c40e747b1acb39e2
treeab8ac050894738e2be417d7bb09bc1fc7d339cc3
parentb1cdd8baa14f518288ceddb391d6587c1ecb3174
ARM: HYP/non-sec: move switch to non-sec to the last boot phase

Having the switch to non-secure in the "prep" phase is causing
all kind of troubles, as that stage can be called multiple times.

Instead, move the switch to non-secure to the last possible phase,
when there is no turning back anymore.

Signed-off-by: Marc Zyngier <[email protected]>
Acked-by: Ian Campbell <[email protected]>
arch/arm/lib/bootm.c